package com.livedocumentation.client.web.description;

import com.google.gwt.user.client.ui.HTML;
import com.livedocumentation.client.model.ProjectClass;

/**
 * 
 * @Feature
 */
public class FeatureDescription extends HTML {

	public FeatureDescription(ProjectClass entry) {

		String description = "<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
				+ entry.getFeatureDescription();

		// String methods = featureMethods(entry.getMethods());

		String itemPanel = featureName(entry) + description; // + methods;

		this.setHTML(itemPanel);
	}

	private static String featureName(ProjectClass entry) {

		String name = "<B>" + entry.getFeatureName() + "</B> ";

		return name;
	}
}
